import { createPinia } from 'pinia'
import type { App } from 'vue'
import piniaPluginPersistedState from 'pinia-plugin-persistedstate'

export default {
  install(app: App) {
    const pinia = createPinia()
    pinia.use(piniaPluginPersistedState)
    app.use(pinia)
  },
}
